import { BasicPageResult, BasicPageSearch } from "./basicType";


export type SoftwarePageSearch = BasicPageSearch & {
    token: string; // 曙光token
}

export type SoftwareTag = {
    id: number;
    refId?: number;
    type?: number;
    tagId?: string;
    tagName?: string;
}

export type Software = {
    basePrice: number;
    desc: string;
    extra: { [key: string]: any };
    id: string;
    isBuy: number;
    isTrial: number;
    nameCn: string;
    platformChosen: number;
    region: string[];
    resource: string;
    score: string;
    skuHotStatus: number;
    skuImgUrl: string;
    skuSaleCount: number;
    skuScore: number;
    skuStatus: number;
    skuTags: string[];
    storeId: string;
    storeName: string;
    storeStatus: number;
    storeSuggest: number;
    suggest: number;
    supportTrial: boolean;
    trialDuration: number;
    trialUnit: string;
    [property: string]: any;
}

export type SoftwarePageResult = BasicPageResult & {
    records: Software[];
}

export type RecSoftwarePageResult = BasicPageResult & {
    records: Software[];
}